<?php
/*
AceGame. Web browser MMORPG.
Copyright(C) 2012 Aceapps Aplicaciones. 
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses
*/

	// Session Start

	session_start();

	// Load files

	require_once '../include/functions.php';

	// Admin Login Validation

	if (!admin_session_validate()) {
		header('Location: ../');
		exit;
	}

	// Load HTML5 Template

	include_once '../template/header.php';

	// Admin Options

	/*<!-- Options -->

		<p>-</p>
		<p><input type="submit" value="user panel" class="submit"
		onClick="location.href=\'../users/index.php\'" />
		<input type="submit" value="logout" class="submit"
		onClick="location.href=\'../users/logout.php\'" /></p>';*/

	echo '<div class="tabs">
			<ul>
			<li id="tabHeader_1">Users</li>
			<li id="tabHeader_2">Items</li>
			<li id="tabHeader_3">Spells</li>
			<li id="tabHeader_4">Maps</li>
			<li id="tabHeader_5">Races</li>
			<li id="tabHeader_6">Mobs</li>
			<li id="tabHeader_7">Quests</li>
			<li id="tabHeader_8">Options</li>
			</ul>
		</div>

		<div class="tabscontent">

			<div class="tabpage" id="tabpage_1">
				<p><input type="submit" value="user list" class="submit"
					onClick="location.href=\'users.php\'" /></p>
			</div>

			<div class="tabpage" id="tabpage_2">
				<p><input type="submit" value="add item" class="submit"
					onClick="location.href=\'add.php?table=items\'" />
				<input type="submit" value="item list" class="submit"
					onClick="location.href=\'list.php?table=items\'" /></p>
			</div>

			<div class="tabpage" id="tabpage_3">
				<p><input type="submit" value="add spell" class="submit"
					onClick="location.href=\'add.php?table=spells\'" />
				<input type="submit" value="spell list" class="submit"
					onClick="location.href=\'list.php?table=spells\'" /></p>
			</div>

			<div class="tabpage" id="tabpage_4">
				<p><input type="submit" value="add map" class="submit"
					onClick="location.href=\'add.php?table=maps\'" />
				<input type="submit" value="map list" class="submit"
					onClick="location.href=\'list.php?table=maps\'" />
				<input type="submit" value="add route" class="submit"
					onClick="location.href=\'add.php?table=routes\'" />
				<input type="submit" value="route list" class="submit"
					onClick="location.href=\'list.php?table=routes\'" /></p>
			</div>

			<div class="tabpage" id="tabpage_5">
				<p><input type="submit" value="add race" class="submit"
					onClick="location.href=\'add.php?table=races\'" />
				<input type="submit" value="race list" class="submit"
					onClick="location.href=\'list.php?table=races\'" /></p>
			</div>

			<div class="tabpage" id="tabpage_6">
				<p><input type="submit" value="add mob" class="submit"
					onClick="location.href=\'add.php?table=mobs\'" />
				<input type="submit" value="mob list" class="submit"
					onClick="location.href=\'list.php?table=mobs\'" />
				<input type="submit" value="add drop" class="submit"
					onClick="location.href=\'add.php?table=drops\'" />
				<input type="submit" value="drop list" class="submit"
					onClick="location.href=\'list.php?table=drops\'" />
				<input type="submit" value="add spawn" class="submit"
					onClick="location.href=\'add.php?table=spawns\'" />
				<input type="submit" value="spawn list" class="submit"
					onClick="location.href=\'list.php?table=spawns\'" /></p>
			</div>

			<div class="tabpage" id="tabpage_7">
				<p><input type="submit" value="add quest" class="submit"
					onClick="location.href=\'add.php?table=quests\'" />
				<input type="submit" value="quest list" class="submit"
					onClick="location.href=\'list.php?table=quests\'" />
				<input type="submit" value="add questmob" class="submit"
					onClick="location.href=\'add.php?table=questmobs\'" />
				<input type="submit" value="questmob list" class="submit"
					onClick="location.href=\'list.php?table=questmobs\'" />
				<input type="submit" value="add questitem" class="submit"
					onClick="location.href=\'add.php?table=questitems\'" />
				<input type="submit" value="questitem list" class="submit"
					onClick="location.href=\'list.php?table=questitems\'" />
				<input type="submit" value="add reward" class="submit"
					onClick="location.href=\'add.php?table=rewards\'" />
				<input type="submit" value="reward list" class="submit"
					onClick="location.href=\'list.php?table=rewards\'" /></p>
			</div>

			<div class="tabpage" id="tabpage_8">
				<p><input type="submit" value="user panel" class="submit"
					onClick="location.href=\'../users/index.php\'" /></p>
			</div>

		</div>';

	// Load HTML5 Template

	include_once '../template/footer.php';
?>
